<?php
/**
 * IG_Install_Pathc
 *
 * @author maomao.thx@gmail.com
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: Patch.php 524 2011-05-24 01:44:20Z mmxie $
 */
class IG_Install_Pathc extends IG_Install
{
    protected $_patchFiles;
    /**
     *
     */
    public function uninstall()
    {
        if ($this->isInsalled()) {
            if ($this->removeConfig())
                $this->deleteFile();
        }
    }

    public function removeConfig()
    {

    }

    public function deleteFile()
    {
        foreach ($this->_patchFiles as $file) {
            if (unlink($file))
                echo "remove file {$file} success<br />";
            else
                echo "remove file {$file} failure<br />";
        }
        return true;
    }
}